package design.simdi.code.final_paper.core.daos;

import it.openutils.dao.hibernate.HibernateDAO;
import it.openutils.dao.hibernate.HibernateDAOImpl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import design.simdi.code.final_paper.core.entities.Student;

/**
 * 
 * @author Marius Dumitriu - (May 31, 2010 - 1:08:41 AM)
 * 
 */
public interface StudentDao extends HibernateDAO<Student, Long> {
	@Repository(value = "studentDao")
	public static class StudentDaoImpl extends HibernateDAOImpl<Student, Long> implements StudentDao {

		@Autowired
		public StudentDaoImpl(SessionFactory factory) {
			setSessionFactory(factory);
			setReferenceClass(Student.class);
		}

	}

}
